package com.small.nacos.naming.core;

import java.io.Serializable;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @Author zhoujin
 * @Date 2022/10/29 12:38
 */
public class Instances implements Serializable {

    private static final long serialVersionUID = 5500823673993740145L;

    private List<Instance> instanceList = new CopyOnWriteArrayList<>();

    public List<Instance> getInstanceList() {
        return instanceList;
    }

    public void setInstanceList(List<Instance> instanceList) {
        this.instanceList = new CopyOnWriteArrayList<>(instanceList);
    }

}
